#include<iostream>
#include<cstdlib>
#include"mylib.h"

int main() {
    std::cout<<"test myclass"<<std::endl;

    using namespace mylib;
    vector<float> a(10);
    for (int i = 0; i < 10; i++)a[i] = 0.1 * i;
    a.show(4);
    vector<float> b(10,0.5);
    vector<float> c(a);
    b.show(4);
    c.show(4);

    float tmp;
    tmp = a.dot(a);
    std::cout<<"a dot a = "<<tmp<<std::endl;
    tmp = a.dot(b);
    std::cout<<"a dot b = "<<tmp<<std::endl;


    std::cout<<"a * b = ";
    c = a * b;
    c.show(4);

    std::cout<<"a + b = ";
    c = a + b;
    c.show(4);

    double ai=1.1,bi=1.2;
    double ci;
    ci = MIN(ai,bi);
    std::cout<<ci<<std::endl;

    Doub tmpa[] = { 2,1,1,6,2,1,-2,2,1 };
    MatDoub aa(3,3,tmpa);
    aa.show(3,3);
    MatDoub bb(3,3,0.1);

    MatDoub cc=aa.dot(bb);
    cc.show(3,3);
    
    return 0;
}